﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Javavaj.iHunter;
namespace Javavaj.iHunter.Core
{
    internal class DummyChannel: IChannel
    {
        #region IChannel 成员

        public string Title
        {
            get { return "Invalid Channel"; }
        }

        public string Category
        {
            get { return ""; }
        }

        public string Link
        {
            get { return ""; }
        }

        public string Description
        {
            get { return "Cannot find the channel. It might because the nessessary plugins is missing."; }
        }

        public bool Open()
        {
            return false;
        }

        public void Close()
        {
            
        }

        public ICollection<IMessage> GetMessages(DateTime startTime, DateTime endTime, string category)
        {
            return new Message[0];
        }

        public Stream DownloadFile(IFileObject file)
        {
            return null;
        }

        public bool RefreshMessage(IMessage message)
        {
            return false;
        }

        public void NotifyReply(IMessage source)
        {
            return;
        }

        public bool Reply(IMessage source, IDictionary<string, object> replyinput, string tag)
        {
            return false;
        }

        public event EditReplyEventHandler EditReply;

        #endregion

        #region IChannel 成员


        public DateTime LastUpdateTime
        {
            get
            {
                return DateTime.Now;
            }
            set
            {
                
            }
        }


        #endregion

  
    }
}
